package com.project.class8_24.proxy.dynaProxy;

public class Test {
    public static void main(String[] args) {
        MissYang miss = new MissYang(new BossWang());
        //得到代理对象，代理对象和目标对象实现相同的接口
        IBossEat bossEat = (IBossEat) miss.getProxy();
        bossEat.eat();
        bossEat.drink();
    }
}
